package Sort;

/**
 * Created by sunwei on 2017/9/28
 * Time:10:44
 */
public class Person {
    public String firstName;//人的姓
    public String lastName;//人的名字
    public int age;//人的年龄
    //构造函数
    public Person(String firstName, String lastName,int age) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.age = age;
    }
    //既然是根据人的姓排序，那么就需要getFirstName()方法
    public String getFirstName() {
        return firstName;
    }
    //显示人的信息
    public void deployPerson(){
        System.out.println("First Name" + firstName);
        System.out.println("Last Name" + lastName);
        System.out.println("Age"+ age);
    }
}
